package com.xm.api;

import com.xm.common.entity.LoginRequest;
import com.xm.common.entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author yousj
 * @since 2022-03-22
 */
@FeignClient(
        contextId = "loginClientService",
        value = "${api.provider.service.application.name}"
)
@RequestMapping("/api")
public interface LoginApi {

    @PostMapping("/door/login")
    R login(@RequestBody LoginRequest loginRequest);

}
